﻿/// <reference path="BaseTreeNode.js" />

var $BaseTextNode = TA.Turbo.Controls.BaseTextNode = function BaseTextNode()
{
	this.BaseTreeNode();
}
$BaseTextNode.Inherit($BaseTreeNode);

var ____a;
if (____a)
{
	$BaseTextNode.prototype = new $BaseTreeNode();
	$BaseTextNode.prototype.BaseTreeNode = new $BaseTreeNode();
}

$BaseTextNode.prototype.Text = null;
$BaseTextNode.prototype.ToolTip = null;

$BaseTextNode.prototype.SerializeContents = function SerializeContents(jw)
{
	this.BaseTreeNode.SerializeContents.call(this, jw);

	if (this.Text != null)
	{
		jw.Property("Tx", this.Text);
	}

	if (this.ToolTip != null)
	{
		jw.Property("T", this.ToolTip);
	}
}
$BaseTextNode.prototype.DeserializeContent = function DeserializeContent(propShortName, value)
{
	switch (propShortName)
	{
		case "Tx": this.Text = value; break;
		case "T": this.ToolTip = value; break;
		default: this.BaseTreeNode.DeserializeContent.call(this, propShortName, value); break;
	}
}
